解决hexo markdown解析与mathjax冲突问题

简单来说,要让你的Hexo支持MathJax渲染公式,你只需要使用两条命令:
To fully support MathJax in your Hexo blog, you can simply use the following commands:

1
2
npm uninstall hexo-renderer-marked --save
npm install hexo-renderer-kramed --save

第一条命令用于卸载 hexo-renderer-marked(注意,如果你使用了其他的渲染插件,请卸载对应的插件),它是hexo自带的Markdown渲染引擎。
The first command uninstall Hexo’s default Markdown renderer.
第二条命令用于安装 hexo-renderer-kramed 插件,这个渲染插件针对MathJax支持进行了改进。安装完成后,重新生成博客就会惊喜地发现你的公式已经能够正常显示了。
The second command install new Markdown renderer which can support MathJax fully. After installation, you should regenerate your blog to see the changes.